package com.aqiang.day0528_shop.sql

import android.content.Context
import android.database.sqlite.SQLiteDatabase
import org.jetbrains.anko.db.ManagedSQLiteOpenHelper

class SearchSql(var context:Context,var sqlName:String = "search.db",var v:Int = 1) :ManagedSQLiteOpenHelper(context,sqlName,null,v) {

    override fun onCreate(db: SQLiteDatabase?) {
        db!!.execSQL("create table search (name varchar(20))")
    }

    override fun onUpgrade(db: SQLiteDatabase?, oldVersion: Int, newVersion: Int) {

    }

}